// 用户状态=》登录人信息
export default {
  namespaced: true,
  // state定义可以写成函数=》和vue中data的定义类似=》避免引用
  state: () => ({
    profile: {
      id: '',
      avatar: '',
      nickname: '',
      account: '',
      mobile: '',
      token: ''
    }
  }),
  mutations: {
    updateValue (state, payload) {
      state.profile.id = payload
    }
    // testToken (state, payload) {
    //   state.profile.token = payload
    // }
  }
}
